/*
 * @Author: HeAo
 * @Date: 2021-09-28 11:04:34
 * @LastEditTime: 2021-09-28 11:15:56
 * @LastEditors: HeAo
 * @Description:
 * @FilePath: \web2103-2105\web2103code\3-1-ES6\day04\5-symbol.js
 * 别乱动！
 */
// type of symbol number boolean string object function
// undefined 

let sy1 = Symbol('sy1')
let sy2 = Symbol('sy2')

console.log(sy1, sy2);
console.log(sy1 == sy2);
console.log(typeof sy1);

let obj1 = {
  name: '123',
  age: 12,
  gender: 'male',
  [sy1]: 'zhangsan'
}
console.log(obj1);
console.log(obj1[sy1]);
